package com.ruoyi.backend.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data // 自动生成 getter 和 setter 方法
@NoArgsConstructor
@AllArgsConstructor
public class RestorationData {

    public interface Update {
    }

    @NotNull(groups = {Update.class}, message = "生态修复工程数据ID不能为空")
    private Integer id;

    private Integer restorationId; // 对应 restoration_project 表的外键

    private Integer reportId;

    private String reportName;

    private String reportType;

    @DateTimeFormat(pattern = "yy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate reportTime; // 使用 LocalDate 映射 DATE 类型

    private String fileType;

    private String minioBucketName;

    private String minioFileName;

    private String reportNote;

    private Integer epsgCode;

    private String periodName;

    private String periodTimepoint;

}
